package com.edu.system.domain;

import com.edu.common.annotation.Excel;
import com.edu.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 卡用户
 *
 * @author xxxx
 * @date 2023-12-17
 */
@Data
public class CardUser {
    private static final long serialVersionUID = 1L;

    /**
     * 卡id
     */
    private Long id;

    private String eduId;
    // 持有人
    @NotNull(message = "姓名不能为空")
    @Excel(name = "姓名")
    private String owner;

    @NotNull(message = "教育ID不能为空")
    @Excel(name = "教育ID")
    private String ownerId;

    private String generation;

    @Excel(name = "班级")
    private String className;

    @Excel(name = "学生类型")
    private String studentTypeName;

    @Excel(name = "卡号")
    private String cardNo;

    // 0正常1挂失
    private Integer cardStatus;
    // 0学生/1教师
    @NotNull(message = "角色不能为空")
    @Excel(name = "角色(1老师,2学生)", readConverterExp = "1=1,0=2")
    private Integer type = 0;

    @NotNull(message = "金额不能为空")
    @Excel(name = "金额")
    private Float balance;
    // 0正常/1贫困生
    private Integer isFree;

    // 搜索
    // 界别
    private Integer generationId;
    private Integer classId;
    private Integer minBalance;
    private Integer maxBalance;
    // 1分班级
    private Boolean isSplitClass;


}
